package com.printeverywhere.dto;

import java.util.Date;

import com.printeverywhere.util.DateUtil;

/**
 * ItemOffers entity.
 *
 * @author MyEclipse Persistence Tools
 */

public class ItemOffers implements java.io.Serializable {

	// Fields

	private Integer id;
	private Items items;
	private User user;
	private byte[] image;
	private String title;
	private Integer duration;
	private Double price;
	private Integer quantity = 1;
	private String itemCondition;
	private String description;
	private Date time = DateUtil.getTodaysDate();
	private BidStatus status;
	private String note;
	private Date offerEndTime;
	private Boolean isClosed;

	// Constructors

	public Boolean getIsClosed() {
		return isClosed;
	}

	public void setIsClosed(Boolean isClosed) {
		this.isClosed = isClosed;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	/** default constructor */
	public ItemOffers() {
	}

	/** full constructor */
	public ItemOffers(Items items, User user, byte[] image, String title,
			Integer duration, Double price, Integer quantity,
			String itemCondition, String description, Date time, BidStatus status) {
		this.items = items;
		this.user = user;
		this.image = image;
		this.title = title;
		this.duration = duration;
		this.price = price;
		this.quantity = quantity;
		this.itemCondition = itemCondition;
		this.description = description;
		this.time = time;
		this.status = status;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Items getItems() {
		return this.items;
	}

	public void setItems(Items items) {
		this.items = items;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public byte[] getImage() {
		return this.image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getDuration() {
		return this.duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public String getItemCondition() {
		return this.itemCondition;
	}

	public void setItemCondition(String itemCondition) {
		this.itemCondition = itemCondition;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public BidStatus getStatus() {
		return this.status;
	}

	public void setStatus(BidStatus status) {
		this.status = status;
	}

	public Date getOfferEndTime() {
		return offerEndTime;
	}

	public void setOfferEndTime(Date offerEndTime) {
		this.offerEndTime = offerEndTime;
	}

}